/*
 * TaskStatusDelegate.h
 *
 *  Created on: 18.10.2010
 *      Author: OnGuard
 */

#ifndef TASKSTATUSDELEGATE_H_
#define TASKSTATUSDELEGATE_H_

#include <QApplication>
#include <QPainter>
#include <QItemDelegate>

class TaskStatusDelegate: public QItemDelegate {
Q_OBJECT
public:
	TaskStatusDelegate(QWidget *parent = 0);
	virtual ~TaskStatusDelegate();

	void paint(QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index) const;

private:
	QHash <int, QStyle::StandardPixmap> statusesIcons;//<statusId, iconCode>
};

#endif /* TASKSTATUSDELEGATE_H_ */
